package com.tansun.easycare.rule.executionblock.service;

import java.util.List;
import java.util.Map;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.executionblock.entity.RuleExcutionBlock;
import com.tansun.easycare.rule.executionblock.model.ExecutionBlockVO;
import com.tansun.easycare.rule.ruleversion.entity.RuleVersioninfo;

public interface ExecutionBlockService extends RuleBaseService<RuleExcutionBlock> {


    /**
     * 根据编号和项目代码查找执行信息
     *
     * @param id          规则管理ID
     * @param projectCode 项目代码
     */
    ExecutionBlockVO findExecutionBlock(String id, String projectCode, String version) throws BizException;

    /**
     * 保存执行块VO
     *
     * @param executionBlockVO 执行块VO
     */
    void saveOrUpdate(ExecutionBlockVO executionBlockVO) throws BizException;


    /**
     * 查找引用版本
     */
    List<RuleVersioninfo> findRuleRefVersion(String projectCode, String code, String version) throws BizException;
    
    
    public Map<String,String> findRuleRefModelVersion(String projectCode, String code, String version) throws BizException;

}
